﻿using System;
using System.Threading;
using GenesisDemo.Enums;
using GenesisDemo.Helper;
using GenesisDemo.Model;

namespace GenesisDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            //读取配置
            Config<ConfigModel> config = new Config<ConfigModel>();
            //尝试连接gateway
            Genesis genesis = new Genesis(config.Data.GenesisRootDIR, config.Data.GenesisDIR);
            //向所有的机器发送命令并得到他们的返回值
            var callbackStr = genesis.Send2All(GenesisCommandEnum.COM, "test");
        }
    }
}
